﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TDBaseDataLibrary
{
    //自身天赋
    public enum enumtalent
    {
        talent_str  = 0,//力量
        talent_sta = 1,//耐力
        talent_int = 2,//智力
        talent_agile = 3,//敏捷
        talent_luck = 4,//幸运
        talent_constitution = 5,//体质
    };

    public enum enumattribute
    {
        attr_lift = 0,
        attr_ac = 1,
        attr_dc = 2,
        attr_mac = 3,
        attr_mdc = 4,
        attr_speed = 5,
        attr_mgic = 6,
        attr_count = 7,
    };

    public enum enumstatus
    {
        status_lift = 0,
        status_magic = 1,
        status_count = 2,
    }
    public enum enumattr
    {
        attr_lift = 0,
        attr_ac = 1,
        attr_dc = 2,
        attr_str = 3,
        attr_power = 4,
        attr_luck = 5,
        attr_speed = 6,
        attr_downforce = 7,
        attr_price = 8,
    }
    public enum enumHeroState
    {
        hero_walk = 0,
        hero_run = 1,
        hero_stand = 2,
        hero_fight = 3,
    }
    public class AttributeGain
    {
        public string attrname;
        public float value;
    }
    //附加技能，载入后还需进行初始化才能使用
    public class BufferSkill
    {
        public string ID;
        public string Caption;
        public string Descript;
        public string Icon;
        public string Texture;
        //持续时间
        public int Sustained;
        //间隔时间
        public int Interval;
        public List<AttributeGain> GainList = new List<AttributeGain>();

    }
    public class BufferSkills
    {
        public List<BufferSkill> Bufferlist = new List<BufferSkill>();
    }
    public class BufferAttr
    {
        public string ID;
        public int time;
    }
    public class RoleClass
    {
        public string caption;
        public string description;
        public string icon;
        public string tex;

        public List<AttributeGain> AttrList = new List<AttributeGain>();
        static string[] attrID =
        {
            "lift",
            "ac",
            "dc",
            "str",
            "power",
            "luck",
            "speed",
            "downforce",
            "price",
        };
        static string[] attrcaption =
        {
            "生命",
            "攻击力",
            "防御力",
            "力量",
            "魔法",
            "运气",
            "速度",
            "可吸收法力",
            "价格",
        };
        public float get_attribute(enumattr attr)
        {
            return AttrList[(int)attr].value;
        }
    }
    public class RoleClasss
    {
        public List<RoleClass> EnemyList = new List<RoleClass>();
    }
}
